package com.jy.adscm.zltx.service;

import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.zltx.bean.NewAddQsFile;
import com.jy.adscm.zltx.bean.QsFile;
import com.jy.adscm.zltx.bean.QsFileVersion;

import java.util.List;

/**
 * <p>
 * 质量体系文件 服务类
 * </p>
 *
 * @author zyl
 * @since 2018-10-15
 */
public interface QsFileService extends IService<QsFile> {
    QsFile selectByFileId(Integer fileId);
    boolean  insertQsFile(QsFile qsFile,String treeId)throws AdscmSystemException;

    boolean updateQsFile(QsFile qsFile)throws AdscmSystemException;

    NewAddQsFile printCurrentVersion(Integer fileId)throws AdscmSystemException;

    List<QsFileVersion> historyVersion(Integer fileId);

    boolean updateQsFileVersion(QsFileVersion qsFileVersion);
}
